﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="AddGrowthRecord-f.aspx.cs" Inherits="WanPiJie.WebSite.MyBaby.AddGrowthRecord_f" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<title></title>
	<link href="http://ajax.aspnetcdn.com/ajax/jquery.ui/1.8.19/themes/base/jquery-ui.css" rel="stylesheet" type="text/css" />
	<link href="../Content/Styles/style.css" rel="stylesheet" type="text/css" />
</head>
<body>
	<form id="form1" runat="server">
	<% if (this.Result.Status == ResultStatus.Success) %>
	<% { %>
	Success!
	<% } %>
	<% if (this.Result.Status == ResultStatus.Failure) %>
	<% { %>
	Failure!
	<% } %>
	<div>
		<% if (this.from == "addbaby" && this.isFirst) %>
		<% { %>
		出生信息（选填）
		<% } %>
		<table>
			<tr>
				<td>
					身高：
				</td>
				<td>
					<asp:TextBox ID="f_Height" runat="server" CssClass="required"></asp:TextBox>
				</td>
			</tr>
			<tr>
				<td>
					体重：
				</td>
				<td>
					<asp:TextBox ID="f_Weight" runat="server" CssClass="required"></asp:TextBox>
				</td>
			</tr>
			<tr>
				<td>
					头围：
				</td>
				<td>
					<asp:TextBox ID="f_HeadSize" runat="server" CssClass="required"></asp:TextBox>
				</td>
			</tr>
			<tr>
				<td>
					胸围：
				</td>
				<td>
					<asp:TextBox ID="f_ChestSize" runat="server" CssClass="required"></asp:TextBox>
				</td>
			</tr>
			<tr>
				<td>
					日期：
				</td>
				<td>
					<asp:TextBox ID="f_SurveyDate" runat="server" CssClass="required"></asp:TextBox>
				</td>
			</tr>
			<tr>
				<td>
					&nbsp;
				</td>
				<td>
					<asp:Button ID="BtnOK" runat="server" OnClick="BtnOK_Click" Text="添加" />
				</td>
			</tr>
		</table>
	</div>
	</form>
	<script type="text/javascript" src="http://ajax.aspnetcdn.com/ajax/jQuery/jquery-1.7.2.min.js"></script>
	<script type="text/javascript" src="http://ajax.aspnetcdn.com/ajax/jquery.ui/1.8.19/jquery-ui.min.js"></script>
	<script type="text/javascript" src="http://ajax.aspnetcdn.com/ajax/jquery.ui/1.8.19/i18n/jquery-ui-i18n.min.js"></script>
	<script type="text/javascript" src="http://ajax.aspnetcdn.com/ajax/jquery.validate/1.9/jquery.validate.min.js"></script>
	<script type="text/javascript">
		$(function () {
			$("#f_SurveyDate").datepicker();
			$("form").validate({
				messages: {
					f_Height: {
						required: ""
					},
					f_Weight: {
						required: ""
					},
					f_HeadSize: {
						required: ""
					},
					f_ChestSize: {
						required: ""
					},
					f_SurveyDate: {
						required: ""
					}
				}
			});
		});
	</script>
</body>
</html>
